package com.henu.engineer.dao.mapper.teacher

import com.henu.engineer.dao.entity.teacher.CourseGroupMember
import org.apache.ibatis.annotations.Mapper
import org.springframework.stereotype.Repository

/**
 *
 * @author noexcept
 * @since 2021/8/11 20:53
 */
@Mapper
@Repository
interface CourseGroupMemberXmlMapper {
    /**
     * 为某个课程组新添一名成员
     */
    fun insertSingle(courseGroupId: String, teacherId: String): Boolean

    /**
     * 查询某个老师所在的所有课程组id
     */
    fun selectGroupIdsByTeacherId(teacherId: String): List<String>

    fun selectByCourseGroupId(courseGroupId: String): List<CourseGroupMember>
}